<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ taglib uri="http://www.ld.com/system/tags" prefix="system"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<link type="text/css" rel="stylesheet" href="${ctxPath }/css/news/chouui-custom.css" />
<%-- 权限判断 --%>
<shield:permssion type="button">
<form action="${ctxPathA}/system/timedtask/addOrUpdate" method="post" class="show-info">
	<shield:token/>
    <input id="id" name="id" type="hidden" maxlength="100" value="${model.id }">
    <table class="tab-show">
    <col width="120">
<c:if test="${not empty model.jobId }">
        <tr>
	    	<th>
            	<label><font color="red">*</font>job标识：</label>
        	</th>
         	<td>${model.jobId}</td>
		</tr>
</c:if>
        <tr>
	    	<th>
            	<label><font color="red">*</font>任务名称：</label>
        	</th>
         	<td><input type="text" name="jobName" value="${model.jobName}"></td>
		</tr>
        <%-- <tr>
	    	<td>
            	<label><font color="red">*</font>分组名称：</label>
        	</td>
         	<td><input type="text" name="jobGroupName" value="${model.jobGroupName}"></td>
		<tr> --%>
        <%-- <tr>
	    	<td>
            	<label><font color="red">*</font>触发器名称：</label>
        	</td>
         	<td><input type="text" name="triggerName" value="${model.triggerName}"></td>
		<tr> --%>
        <%-- <tr>
	    	<td>
            	<label><font color="red">*</font>触发器分组名称：</label>
        	</td>
         	<td><input type="text" name="triggerGroupName" value="${model.triggerGroupName}"></td>
		<tr> --%>
		<tr>
	    	<th>
            	<label><font color="red">*</font>类名：</label>
        	</th>
         	<td>
         		<!-- select2_plugin调用select2 -->
         		<select class="select2_plugin" name="className" data-v="${model.className}">
   <c:forEach var="taskCls" items="${taskClasses}"> 
					<option value="${taskCls }">${taskCls }</option>
   </c:forEach>
				</select>
         	</td>
		</tr>
        <tr>
	    	<th>
            	<label><font color="red">*</font>cron表达式：</label>
        	</th>
         	<td>
         		<!-- cron表达式选择器，execTimesUrl【非必需】为最近5次执行时间execTimesUrl="system/scheduler/json/excuteTime.json" -->
                <input class="shield-cron" name="cronExpression" value="${model.cronExpression}" placeholder="" type="text" execTimesUrl="${ctxPathA }/system/timedtask/getExcuteTime">
         	</td>
		</tr>
        <tr>
	    	<th>
            	<label>备注：</label>
        	</th>
         	<td><input type="text" name="remarks" value="${model.remarks}"></td>
		</tr>
        <tr>
	    	<th>
            	<label>启动状态：</label>
        	</th>
         	<td>${model.isStart == 1 ? "已启动" : "未启动" }</td>
		</tr>
    </table>
    <div class="taCenter">
		<input class="button" type="submit" class="button" value="提交"/>
    	<input class="button default" type="reset" class="button" value="重置"/>
    </div>
</form>
</shield:permssion>